const screenMap = {
	'iPhone6': {
		name: 'iPhone 6',
		prop: 'iPhone6',
		sizeScr: '750x1334',
		size: {
			width: 750,
			heigth: 1334
		}
	},
	'iPhoneX': {
		name: 'iPhone X',
		prop: 'iPhone6',
		sizeStr: '1125x2436',
		size: {
			width: 1125,
			heigth: 2436
		}
	}
}
function getScreenInfo(fn) {
	wx.getSystemInfo({
		success(res) {
			let sysMode = res.model;
			if (sysMode.indexOf(screenMap.iPhoneX.name) > -1) {
				fn(screenMap.iPhoneX);
			}
			if (sysMode.indexOf(screenMap.iPhone6.name) > -1) {
				fn(screenMap.iPhone6);
			}
		},
		fail(err) {
			console.log(res);
		}
	})
}
module.exports = getScreenInfo